package com.bosssoft.service_order.mapper;

import com.bosssoft.service_order.domain.po.ShoppingTrolley;
import com.bosssoft.service_order.domain.po.ShoppingTrolleyExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ShoppingTrolleyMapper {
    long countByExample(ShoppingTrolleyExample example);

    int deleteByExample(ShoppingTrolleyExample example);

    static int deleteByPrimaryKey(@Param("userId") Long userId, @Param("goodId") Long goodId) {
        return 0;
    }

    int insert(ShoppingTrolley record);

    int insertSelective(ShoppingTrolley record);

    List<ShoppingTrolley> selectByExample(ShoppingTrolleyExample example);

    ShoppingTrolley selectByPrimaryKey(@Param("userId") Long userId, @Param("goodId") Long goodId);

    int updateByExampleSelective(@Param("record") ShoppingTrolley record, @Param("example") ShoppingTrolleyExample example);

    int updateByExample(@Param("record") ShoppingTrolley record, @Param("example") ShoppingTrolleyExample example);

    int updateByPrimaryKeySelective(ShoppingTrolley record);

    int updateByPrimaryKey(ShoppingTrolley record);
}
